//校验XML
function validateWebServiceDriverConfig($this, driverConfig) {
	var name = $this.find('input[name="name"]').val();
	var url = $this.find('input[name="url"]').val();
	var method = $this.find('input[name="method"]').val();
	var primaryKey = $this.find('input[name="primaryKey"]').val();
	
	//校验webservice表单
	if($this.formValidate()==false){
		return null;
	}

	driverConfig.name = name;
	driverConfig.url = url;
	driverConfig.method = method;
	driverConfig.primaryKey = primaryKey;

	//getWebserviceConnector
	var isSuccess = false;
	$.ajax({  
		url : $basePath + "/driver/getWebserviceConnector",  
		contentType:"application/x-www-form-urlencoded",
	    type : "post",  
	    data : driverConfig,  
	    async : false,
	    success : function(data){
	    	isSuccess = data.success;
	    	if(!isSuccess){
	    		bootGrowl(data.resultValue,"danger"); 
	    	}
	    }
    });
	
	if(!isSuccess){
		return null;
	}
	
	// 组装数据源和目标源字段
	var metaInfo = $this.find(".driverWebServiceParamsContainer .form-group");
	var cols = [];
	for (var i = 0; i < metaInfo.length; i++) {
		var col = $(metaInfo[i]);
		var filedName = col.find('input[name="filedName"]').val();
		var filedType = col.find('select[name="filedTypeName"]').val();
		var filedTypeName = col.find('option:selected').text();
		cols.push({
			"name" : filedName.toLocaleUpperCase(),
			"typeName" : filedTypeName,
			"type" : filedType
		});
	}

	driverConfig.column = cols;
	return driverConfig;
}